#ifndef QINITMICRO_H
#define QINITMICRO_H
#include <QString>
#include <QList>
#include <QFile>
#include <QDebug>

static void createDesktop(QString name, QString args, QString result_path)
{
    QFile file(result_path);
    if(!file.open(QIODeviceBase::ReadWrite))
    {
        qDebug() << result_path << " open error";
        return ;
    }
    file.write("[Desktop Entry]\n");
    file.write("Type=Application\n");
    file.write("Exec=qlauncher ");
    file.write(name.toStdString().c_str());
    file.write(" ");
    file.write(args.toStdString().c_str());
    file.close();
}

#endif // QINITMICRO_H
